﻿using Server.Contract;
using WCFLib;

namespace Client.Core.Util
{
    public class ServerProxy
    {
        private static ProxyHelper<IUpdateService> _updateService;

        public static ProxyHelper<IUpdateService> UpdateService
        {
            get
            {
                if (_updateService == null)
                {
                    _updateService = new ProxyHelper<IUpdateService>("net.tcp://localhost:8080");
                }

                return _updateService;
            }
        }
    }
}
